<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;

/* @var $model \app\models\User */
/* @var $this \yii\web\View */
?>

<div class="mui-content">
    <div class="mui-content-padded">
        <div class="mui-text-center logo-row">
            <img src="<?= Yii::getAlias('@assets'); ?>/images/logo.jpg"/>
        </div>
        <?php $form = ActiveForm::begin([
            'id' => 'loginForm',
            'options' => ['class' => 'mui-input-group login-form']

        ]); ?>
            <div class="mui-input-row input-icon">
                <div class="icon icon-user"></div>
                <?= $form->field($model, 'phone')->textInput(['placeholder' => '请输入手机号', 'class' => 'mui-input-clear form-control'])->label(FALSE); ?>
            </div>
            <div class="mui-input-row input-icon mui-input-password">
                <div class="icon icon-password"></div>
                <?= $form->field($model, 'password')->passwordInput(['placeholder' => '请输入密码'])->label(FALSE); ?>
            </div>

            <button type="submit" class="mui-btn btn-ui mui-btn-block border-r5">登录</button>

            <div class="fflex form-links">

                <a href="" data-href="<?= Url::to(['auth/register']); ?>">注册</a>
                <a href="" class="txt-underline" data-href="<?= Url::to(['auth/reset-pwd']); ?>">忘记密码</a>

            </div>
        <?php ActiveForm::end(); ?>
    </div>
</div>
